package com.zhanghe.study.study_scala.oop

/**
 * 构造顺序
 * @author zh
 * @date 2021/5/6 17:56
 */
object TestTrait {
  def main(args: Array[String]): Unit = {
    //E
    //A
    //B
    //C
    //D
    //F
    val f = new F
  }
}

trait A{
  println("A")
}

trait B extends A{
  println("B")
}

trait C extends B{
  println("C")
}

trait D extends C{
  println("D")
}

trait E {
  println("E")
}

class F extends E with C with D{
  println("F")
}
